Empirical orthogonal functions